package com.jake.microservice.provider.mybatis.service;

import com.jake.microservice.model.UserDTO;
import com.jake.microservice.model.UserInfoDTO;

import java.util.List;

public interface UserService {

    List<UserDTO> findAllUsers();

    List<UserDTO> findAllUserInfo();

    UserDTO findUserById(Integer uid);

    UserInfoDTO findUserInfoById(Integer uid);

    List<UserInfoDTO> findUserInfoByUsernameAndCname(String username, String cname);

    int createUser(UserDTO user);

    int updateUser(UserDTO user);

    int updateUsername(String username, Integer uid);

    int removeUserById(Integer uid);
}
